package com.juc.semaphore.semaphore10;

public class MyThreadFair extends Thread {

    private MyServiceFair serviceFair;

    public MyThreadFair(MyServiceFair serviceFair) {
        super();
        this.serviceFair = serviceFair;
    }

    @Override
    public void run() {
        System.out.println("threadName= " + this.getName() + " 启动了 ！");
        serviceFair.testMethod();
    }
}
